<?php
//逐个表格对比数据，插入翻译数据
include_once("../config.php");
$host = $_SERVER['HTTP_HOST']; //取得进入所输入的域名
$theme_folder = host_theme($host);
include_once '/../front/' . $theme_folder . '/connection.php';
?>




<?php
//生成unid项的功能已经做在了update_table


$_single_list=['site','contact'];
$_mulity_list=['plate','term','detail'];


//循环为表格加上unid项
foreach($table_list as $k=>$v)
{
    $_target=select_lines_items($table_prefix.$v,"","nid,unid,name","unid is null","");
    //print_r2($_targer);

    //获取数据之后，再次循环更新他们的unid
    foreach($_target as $k2=>$v2)
    {
        $_newdata['ai_unid'] = date("YmdHis").rand(1000000000,9999999999);
        echo $_update_unid_str    = update_date($table_prefix.$v,$_newdata,"nid",$v2['nid']);
        $query = mysql_query($_update_unid_str) or die (mysql_error().$_update_unid_str);
    }


}






?>


